package cn.tsmchina.one.pojo;

import java.util.Date;
import java.util.List;

import org.springframework.util.StringUtils;

import cn.tsmchina.one.domain.activity.Activity;
import cn.tsmchina.one.domain.recommendation.Recommend;
import cn.tsmchina.one.util.JsonUtil;

public class RecommendPojo {
	private int id;
	
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getRecName() {
		return recName;
	}

	public void setRecName(String recName) {
		this.recName = recName;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getRecContent() {
		return recContent;
	}

	public void setRecContent(String recContent) {
		this.recContent = recContent;
	}

	public String getImages() {
		return images;
	}

	public void setImages(String images) {
		this.images = images;
	}

	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public boolean isDelFlag() {
		return delFlag;
	}

	public void setDelFlag(boolean delFlag) {
		this.delFlag = delFlag;
	}

	public String getSummary() {
		return summary;
	}

	public void setSummary(String summary) {
		this.summary = summary;
	}

	private String recName; //活动名称
	
	private Date createDate; //创建时间
	
	private String recContent;//活动内容
	
	private String images;//活动封面图片
	
	private Date startDate; //开始时间
	
	private boolean delFlag;//是否删除

	private String summary;//摘要
	
	@SuppressWarnings("unchecked")
	public RecommendPojo(Recommend rec)
	{
		this.id = rec.getId();
		this.recName = rec.getRecName();
		this.createDate = rec.getCreateDate();
		this.recContent = rec.getRecContent();
		this.images = rec.getImages();
		this.delFlag =  rec.isDelflag();
		this.summary = rec.getSummary();
	}
}
